import math
while True:
    try:

        a, b = map(int, input().strip().split())
        if a > b:
            print(a)
        if a < b:
            print(b)
        if a == b:
            print(a, b)
    except:
        break
